﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ModeloGaleriaNET;

namespace CADs
{
    public abstract class BaseCAD
    {
        protected GaleriaEntities contexto;

        protected BaseCAD()
        {
            contexto = GaleriaContext.Instance.Contexto;
        }

        public void SaveChanges()
        {
            try
            {
                contexto.SaveChanges();
            }
            catch (Exception)
            { }
        }
    }
}
